<#include "/common/common.ftl">
<form id="detailForm" class="pageForm">
	<div class="panel" defH="160" style="width: 100%; float: left;">
		<h1>${processType!}</h1>

		<div>
			<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0
			       class=queryTable>
				<tr>
					<th width="5%"></th>
					<th width="10%"></th>
					<th width="5%"></th>
					<th width="10%"></th>
				</tr>
				<tr>
					<td class="right">
						代码<@splitor/>
					</td>
					<td>
						<input type="text" name="code" id="code" size=10 value="${code!}"/>
					</td>
					<td class="right">
						名称<@splitor/>
					</td>
					<td>
						<input type="text" name="name" id="name" size="20"
						       value="${name!}"/>
					</td>
				</tr>
				<tr>
					<td class="right">
						类型<@splitor/>
					</td>
					<td>
						<input type="text" name="type" id="type" size=10 value="${type!}"/>
					</td>
					<td class="right">
						类型名称<@splitor/>
					</td>
					<td>
						<input type="text" name="typeName" id="typeName" size=20
						       value="${typeName!}"/>
					</td>
				</tr>
				<tr>
					<td class="right">
						是否系统变量<@splitor/>
					</td>
					<td>
					<@const type="yesNo" name="isSystem" id="isSystem"
					value=isSystem/>
					</td>
					<td class="right">
						优先级<@splitor/>
					</td>
					<td>
						<input type="text" name="priority" id="priority" size=10
						       value="${priority!}"/>
					</td>
				</tr>
				<tr>
					<td class="right">
						备注<@splitor/>
					</td>
					<td colspan="3">
						<textarea name="remark" rows="2" cols="60"></textarea>
					</td>
				</tr>
			</TABLE>
		<@listButton/>
		</div>
	</div>
</form>
<script language="javascript" type="text/javascript">
	$('#btnSave', navTab.getCurrentPanel()).click(
			function() {
				var $form = $('#detailForm', navTab.getCurrentPanel());
				$.post('${path}/master/constant.save.do', $form.serializeArray(),
						function(json) {
							//showMsg(json);
							$('#updater', navTab.getCurrentPanel()).html('');
							$('#types', navTab.getCurrentPanel()).trigger('change');
						})
			})
	$('#btnCancel', navTab.getCurrentPanel()).click(function() {
		$('#updater', navTab.getCurrentPanel()).html('');
	})
</script>